Fix deps with `cargo test --all` and doctests
authorAlex Crichton <alex@alexcrichton.com>
Thu, 16 Feb 2017 16:04:09 +0000 (08:04 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 1 Mar 2017 15:03:56 +0000 (07:03 -0800)
commit4ecef028e1be527d9ef5db281dd40c8e5f650f43
treec1cef0557c156c2a1d60a426d1455f9c334d94e9
parent09b68aa640a7c61b9690bc51fe22e5fccbc9aad7
Fix deps with `cargo test --all` and doctests

This commit fixes `cargo test --all` with the way we ship libraries to `rustdoc
--test`. I'm... not entirely sure what the previous incarnation was doing but
the current organization is to interpret `compilation.libraries` as a mapping
from a package to the list of crates it needs to link to test.

This updates the support in `cargo_rustc/mod.rs` to create the map appropriately
and tweaks the loop in `cargo_test.rs` as well.

Closes rust-lang/rust#39879
src/cargo/ops/cargo_rustc/compilation.rs
src/cargo/ops/cargo_rustc/mod.rs
src/cargo/ops/cargo_test.rs
tests/test.rs